﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Product_ProductAttributeEdit.ascx.cs" Inherits="HUGATE.Item.Controls.Product_ProductAttribute.Product_ProductAttributeEdit" %>
<%@ Register Src="~/Controls/ERP/Common/SearchObject.ascx" TagName="SearchObject" TagPrefix="uc1" %>


<table border="0" cellpadding="0" cellspacing="0" class="View_Table" style="width: 100%">
    <tr>
        <td>Sản phẩm:</td>
        <td>
           <asp:TextBox runat="server" ID="txtProductID" ReadOnly = "true"> </asp:TextBox>
        </td>
    </tr>
    
    <tr>
        <td>Thuộc Tính</td>
        <td>
            <asp:UpdatePanel ID="udpAttribute" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:TextBox ID="txtAttributeName" runat="server" ReadOnly="true" Width="160px"></asp:TextBox>
                <asp:Button ID="btnChooseAttribute" runat="server" 
                    CssClass="Control_ButtonBrowse" Text="...." 
                  />
                <asp:ImageButton ID="ibtClearAttribute" runat="server" 
                ImageUrl="~/App_Themes/Default/Images/Buttons/btnDel.gif"  ToolTip="Clear" 
                onclick="ibtClearAttribute_Click" />
                <label id="label1" runat="server" visible="false" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtAttributeName" ErrorMessage="*" ValidationGroup="InputProductPA"></asp:RequiredFieldValidator>
                <asp:Panel ID="pnlUpdateAttribute" runat="server" CssClass="Popup_Table" Style="display: none; width: 650px">
                <div class="Popup_Title">
                            <table border="0" cellpadding="0" cellspacing="0" class="Popup_Title" style="width: 100%">
                                <tr>
                                    <td>
                                        <strong> Chọn Thuộc Tính </strong></td>
                                    <td align="center" style="padding-right: 2px; width: 20px">
                                        <div class="Popup_BtClose" style="width: 16px; height: 17px; text-align: center">
                                            <asp:LinkButton ID="lbtCloseAttribute" runat="server" CssClass="Popup_BtClose" Style="height: 17px"></asp:LinkButton>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                 </div>                 
                   <div class="Popup_Content">
                        <uc1:SearchObject id="soAttribute" runat="server">
                        </uc1:SearchObject>
                        
                   </div>
                  
                <ajaxToolkit:ModalPopupExtender ID="mpeUpdateAttribute" runat="server" BackgroundCssClass="ModalPopupBackground"
                        CancelControlID="lbtCloseAttribute" PopupControlID="pnlUpdateAttribute"  TargetControlID="btnChooseAttribute">
                </ajaxToolkit:ModalPopupExtender>
                </asp:Panel>
           </ContentTemplate>
           </asp:UpdatePanel>
        </td>
    </tr>
    
    
    <tr>
        <td>Giá Trị Của Thuộc Tính</td>
        <td>
            <asp:UpdatePanel ID="udpValue" runat="server" UpdateMode="Conditional" 
                onload="udpValue_Load">
            <ContentTemplate>
            <asp:Panel runat ="server" ID="pnlvalue" Visible="false" >
                <asp:TextBox ID="txtValueName" runat="server" ReadOnly="true" Width="160px"></asp:TextBox>
                <asp:Button ID="btnChooseValue" runat="server" CssClass="Control_ButtonBrowse" Text="...." />
                <asp:ImageButton ID="ibtClearValue" runat="server" ImageUrl="~/App_Themes/Default/Images/Buttons/btnDel.gif"  ToolTip="Clear" OnClick="ibtClearValue_Click" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtValueName" ErrorMessage="*" ValidationGroup="InputProductPA"></asp:RequiredFieldValidator>
                <asp:Panel ID="pnlUpdateValue" runat="server" CssClass="Popup_Table" Style="display: none; width: 650px">
                <div class="Popup_Title">
                            <table border="0" cellpadding="0" cellspacing="0" class="Popup_Title" style="width: 100%">
                                <tr>
                                    <td>
                                        <strong> Chọn Giá Trị </strong></td>
                                    <td align="center" style="padding-right: 2px; width: 20px">
                                        <div class="Popup_BtClose" style="width: 16px; height: 17px; text-align: center">
                                            <asp:LinkButton ID="lbtCloseValue" runat="server" CssClass="Popup_BtClose" Style="height: 17px"></asp:LinkButton>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                 </div>
                 
                   <div class="Popup_Content">
                        <uc1:SearchObject id="soValue" runat="server">
                        </uc1:SearchObject>
                        
                   </div>
                       
              
                <ajaxToolkit:ModalPopupExtender ID="mpeUpdateValue" runat="server" BackgroundCssClass="ModalPopupBackground"
                        CancelControlID="lbtCloseValue" PopupControlID="pnlUpdateValue" TargetControlID="btnChooseValue">
                </ajaxToolkit:ModalPopupExtender>
                 </asp:Panel>
           </asp:Panel> 
         
          
            
            <asp:TextBox runat ="server" ID="txtvalue" Visible="false"/>
               <asp:RequiredFieldValidator ID="RequiredFieldValidator3" Visible="false" runat="server"  ControlToValidate="txtvalue" ErrorMessage="*" ValidationGroup="InputProductPA"></asp:RequiredFieldValidator>
            <asp:ListBox runat ="server" ID="ltbvalue" DataTextField="ValueName" DataValueField="ValueID" SelectionMode="Multiple" DataMember="ValueID" Visible="false"/>
       </ContentTemplate>
       </asp:UpdatePanel>     
        </td>
    </tr>

    <tr>
        <td>
            Mô tả :</td>
        <td colspan="3">
            <asp:TextBox ID="txtDescription" runat="server" Width="95%"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="height: 24px">
        </td>
        <td colspan="3" style="height: 24px">
            <asp:Button ID="btnUpdate" runat="server" CssClass="Control_Button1" OnClick="btnUpdate_Click"
                Text="Cập nhật" ValidationGroup="InputProductPA" />
            <asp:Button ID="btnCancel" runat="server" CssClass="Control_Button1" Text="Bỏ qua" /></td>
    </tr>
</table>
